Moves the insertion point up to, but not including, the first character that is a member of the specified character set in a RichTextBox control.
Syntax
object.Upto(characterset, forward, negate)
The Upto method syntax has these parts:
Part | Description |
object | Required. An object expression that evaluates to an object in the Applies To list. |
characterset | Required. A string expression that specifies the set of characters to look for when moving the insertion point, based on the value of negate. |
forward | Optional. A Boolean expression that determines which direction the insertion point moves, as described in Settings. |
negate | Optional. A Boolean expression that determines whether the characters in characterset define the set of target characters or are excluded from the set of target characters, as described in Settings. |
Settings
The settings for forward are:
Setting | Description |
True | (Default) Moves the insertion point forward, toward the end of the text. |
False | Moves the insertion point backward, toward the start of the text. |
The settings for negate are:
Setting | Description |
True | The characters not specified in the characterset argument are used to move the insertion point. |
False | (Default) The characters specified in the characterset argument are used to move the insertion point. |